﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReportUserStatisticsControl.ascx.cs" Inherits="SimplePMT.Control.ReportUserStatisticsControl" %>
<table width="100%" cellpadding=3>
        <tr>
            <td style="white-space:nowrap;color:#ffffff" bgcolor="#869AAE">User Statistics Report</td>
        </tr>
        <tr>
            <td style="border:1px solid #6893cf;" bgcolor="#ffffff" valign=top>
                <% foreach (MemberStatistics row in memberStats)
                       { %>
                    <table width="100%" align=center>
                        <tr class="highlightTask">
                            <td colspan=4>&nbsp;&nbsp;<b><%= row.MemberName %></b></td>
                        </tr>
                        <tr>
                            <td align=right width=30%><b>Tasks Assigned By:</b></td>
                            <td width=20%><%= row.TasksAssignedBy %></td>
                            <td width=30% align=right><b>Tasks Assigned To:</b></td>
                            <td width=50%><%= row.TasksAssignedTo %></td>
                        </tr>
                        <tr>
                            <td align=right><b>Tasks Completed:</b></td>
                            <td><%= row.TasksCompleted %></td>
                            <td align=right><b>Tasks Open:</b></td>
                            <td><%= row.TasksIncomplete %></td>
                        </tr>
                        <tr>
                            <td align=right><b>Total Hours Estimated:</b></td>
                            <td><%= row.TotalHoursEstimated %></td>
                            <td align=right><b>Total Hours Actual:</b></td>
                            <td><%= row.TotalHoursActual %></td>
                        </tr>
                        <tr>
                            <td align=right valign=top><b>Task Type Breakdown:</b></td>
                            <td valign=top>
                                    <% foreach (TaskAttributeCount ta in row.TaskTypeStats)
                                       { %>
                                    <%= ta.Count %> <%= ta.Label %><br>
                                    <% } %>
                            </td>
                            <td align=right valign=top><b>Task Complexity Breakdown:</b></td>
                            <td>
                                    <% foreach (TaskAttributeCount ta in row.TaskComplexityStats)
                                       { %>
                                    <%= ta.Count %> <%= ta.Label %><br>
                                    <% } %>
                            </td>
                        </tr>
                        
                    </table>
                        <p>
                    <% } %>
                </div>
            </td>
        </tr>
        